package com.example.extend;

public class ShapeS {
    void draw() {
        System.out.println("ShapeS.draw()");
    }
}

class Circle extends ShapeS {
    void draw() {
        System.out.println("Circle.draw()");
    }
}

class Square extends ShapeS {
    void draw() {
        System.out.println("Square.draw()");
    }
}

class Triangle extends ShapeS {
    void draw() {
        System.out.println("Triangle.draw()");
    }
}
